package com.rrx.model;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.Date;

/**
 * Created by Administrator on 2018/8/14.
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Order {
    private int id;
    private String number;
    private int userId;
    private String name;//联系人
    private String phone;//联系电话
    private int fettlerId;//接单师傅ID
    private String fettlerName;
    private String addressname;//订单地址
    private String type;//故障信息
    private String content;//故障信息
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date taketime;//接单时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;//下单时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date completedtime;//完成时间
    private int status;//订单状态
    private int usermoney;//用户支付金额
    private Date usertime;//用户支付时间
    private int fettlermoney;//师傅支付金额
    private Date fettlertime;//师傅支付时间


    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", number='" + number + '\'' +
                ", userId=" + userId +
                ", fettlerId=" + fettlerId +
                ", addressname='" + addressname + '\'' +
                ", type=" + type +
                ", content='" + content + '\'' +
                ", taketime=" + taketime +
                ", time=" + time +
                ", completedtime=" + completedtime +
                ", status=" + status +
                ", usermoney=" + usermoney +
                ", usertime=" + usertime +
                ", fettlermoney=" + fettlermoney +
                ", fettlertime=" + fettlertime +
                '}';
    }

    public Order(int userId, String number,String name, String addressname, String type, String content, Date time) {
        this.userId=userId;
        this.number = number;
        this.name=name;
        this.addressname = addressname;
        this.type = type;
        this.content = content;
        this.time = time;
    }

    public Order() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getFettlerId() {
        return fettlerId;
    }

    public void setFettlerId(int fettlerId) {
        this.fettlerId = fettlerId;
    }

    public String getAddressname() {
        return addressname;
    }

    public void setAddressname(String addressname) {
        this.addressname = addressname;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getTaketime() {
        return taketime;
    }

    public void setTaketime(Date taketime) {
        this.taketime = taketime;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Date getCompletedtime() {
        return completedtime;
    }

    public void setCompletedtime(Date completedtime) {
        this.completedtime = completedtime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getUsermoney() {
        return usermoney;
    }

    public void setUsermoney(int usermoney) {
        this.usermoney = usermoney;
    }

    public Date getUsertime() {
        return usertime;
    }

    public void setUsertime(Date usertime) {
        this.usertime = usertime;
    }

    public int getFettlermoney() {
        return fettlermoney;
    }

    public void setFettlermoney(int fettlermoney) {
        this.fettlermoney = fettlermoney;
    }

    public Date getFettlertime() {
        return fettlertime;
    }

    public void setFettlertime(Date fettlertime) {
        this.fettlertime = fettlertime;
    }

    public String getFettlerName() {
        return fettlerName;
    }

    public void setFettlerName(String fettlerName) {
        this.fettlerName = fettlerName;
    }

    public Order(int id, String number, int userId, String name, String phone, int fettlerId, String addressname, String type, String content, Date taketime, Date time, Date completedtime, int status, int usermoney, Date usertime, int fettlermoney, Date fettlertime) {
        this.id = id;
        this.number = number;
        this.userId = userId;
        this.name = name;
        this.phone = phone;
        this.fettlerId = fettlerId;
        this.addressname = addressname;
        this.type = type;
        this.content = content;
        this.taketime = taketime;
        this.time = time;
        this.completedtime = completedtime;
        this.status = status;
        this.usermoney = usermoney;
        this.usertime = usertime;
        this.fettlermoney = fettlermoney;
        this.fettlertime = fettlertime;
    }
}
